import service from '@/utils/request'

export const login = data => {
  return service({
    url: '/login',
    method: 'post',
    data
  })
}

export const getinfo = () => {
  return service({
    url: '/getinfo',
    method: 'get'
  })
}

export const register = data => {
  return service({
    url: '/register',
    method: 'post',
    data
  })
}

export const changeUserinfo = () => {
  return service({
    url: '/changeUserinfo',
    method: 'post'
  })
}
